import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: () => import('@/views/Main'),
    children: [
      {
        // 系统管理
        path: '/system',
        component: () => import('@/views/System/System'),
        children: [
          {
            path: 'company',
            component: () => import('@/views/System/Company/Company')
          },
          {
            path: 'company/info',
            component: () => import('@/views/Role/Role')
          }
        ]
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
